<template>
  <div class="home">
    <button @click="changeName">点击修改用户名称</button>
  </div>
</template>

<script>
import store from '@/store'
export default {
  name: 'Home',
  setup(props) {
    // console.log(store)
    function changeName() {
      store.changeName('李四')
    }
    return {
      changeName
    }
  }
}
</script>
